
const state = {
  ProjectId: '',
  ProjectOptions: []
}
const mutations = {
  SET_PROJECTID: (state, ProjectId) => {
    state.ProjectId = ProjectId
  },
  SET_PROJECTID_OPTIONS: (state, data) => {
    state.ProjectOptions = data
  }
}
const actions = {
  setProjectId({ commit }, ProjectId) {
    commit('SET_PROJECTID', ProjectId)
    sessionStorage.setItem('SET_PROJECTID', ProjectId)
  },
  setProjectOptions({ commit }, data) {
    commit('SET_PROJECTID_OPTIONS', data)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
